console.log(123);
const arr = [1, 2, 3, 4, 5, 6];
const c = arr.push([7, 8, 9]);
console.log(c); // 7
const obj = {};
obj.name = "小黑"; //

var str = `{ "1-2": "正南", "1-3": "沸羊羊", "1-4": "黑小虎" }`;
const tianGou = JSON.parse(str);
console.log(tianGou);
console.log(tianGou["1-3"]);

const arrNum = [1, 2, 1, 2, 3, 4, 65, 7, 1, 2, 3];
/**
 *
 * @param {*} arr  数组
 * @param {*} num  查找的数据
 *  
 * 判断某一个数字在数组中出现的次数
 * return 返回num变量在数组中出现的次数
 */
function countNum(arr, num) {
  // return 0
  // todo
  
  var count = 0;
    arr.forEach((v)=>{
        if(num === v){
            count++;
        }
    });
    return count;
    
  // return arr.filter((v)=>v===num).length;
}
console.log(countNum(arrNum,1));
// console.log(countNum(arrNum, 1)) // 3
// console.log(countNum(arrNum, 10)) // 0
